﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.reflection
{

    /// <summary>
    /// 声明属性类
    /// </summary>
    [AttributeUsage(AttributeTargets.Property,AllowMultiple = false,Inherited = false)]
    public class XmlAttribute:Attribute
    {
        private string name = "";
        private string description = "";

        public XmlAttribute()
        {

        }
        public XmlAttribute(string _name)
        {
            this.name = _name;
        }
        public XmlAttribute(string _name,string _remark)
        {
            this.name = _name;
            this.description = _remark;
        }

        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
            }
        }

        public string Description
        {
            get
            {
                return description;
            }

            set
            {
                description = value;
            }
        }
    }
}
